#include <gtk/gtk.h>

int on_main_quit()
{
	gtk_main_quit();
	return 0;
}

int main(int argc,char *argv[])
{
	GtkWidget	*window;
	gtk_init(&argc	,&argv);
	window=(GtkWidget*)gtk_window_new(GTK_WINDOW_TOPLEVEL);
	g_signal_connect(G_OBJECT(window)	,"delete_event",\
	G_CALLBACK(on_main_quit)	,NULL);
	gtk_widget_show(window);gtk_main();
	return FALSE;
}
